import cv2
import numpy as np


image = cv2.imread('./person.jpg')
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

hist = cv2.calcHist([image], [0], None, [256], [0, 256])
print(hist)
